<template>
  <div class="combody">
    <div class="departments_title">Departments</div>
    <img class="comimg"
         src="@/static/images/right/topimg.png"
         alt="">
    <div class="phototxt">During the use of sotorasib, patients may experience nausea, vomiting, or poor physical strength and fatigue. Long term, this can lead to mental impairment and weight loss.</div>
    <div class="flexbox mt16 flex-wrap justify-between align-between">
      <div class="boxitem csp justify-center align-center"
           @click="onClick(index)"
           @mouseenter="move(index)"
           @mouseleave="move(-1)"
           v-for="(item,index) in boxitems"
           :key="index"
           :class="ismove==index?'active':''">{{ item }}</div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      ismove: -1,
      boxitems: ['Find Medicine Globally', 'Remote consultation', ' treatment in Japan', 'Contact Us'],

    }
  },
  mounted () {

  },
  methods: {
    move (index) {
      this.ismove = index

    },
    onClick (index) {
      console.log(index);

    }
  }
}
</script>

<style lang="scss" scoped>
.combody {
  .departments_title {
    font-weight: bold;
    font-size: 24px;
    color: #0041a3;
    line-height: 52px;
  }
  .comimg {
    margin-top: 16px;
    width: 336px;
  }
  .phototxt {
    margin-top: 16px;
    font-family: Arial, Arial;
    font-weight: 400;
    font-size: 16px;
    color: #2e343e;
    line-height: 32px;
    text-align: left;
  }
  .flexbox {
    height: 105px;
    .boxitem {
      width: 164px;
      height: 48px;
      border-radius: 8px 8px 8px 8px;
      border: 1px solid #cbd1d7;
      font-family: Arial, Arial;
      font-weight: 400;
      font-size: 14px;
      color: #0041a3;
      line-height: 16px;
    }
    .active {
      background: #0078ff !important;
      color: #ffffff !important;
    }
  }
}
</style>